home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Converters / Convert_FONT / Source / shared.subproj / ProgressIndicator.h < prev    next >
Text File  |  1995-06-12  |  2KB  |  43 lines

  1. /***********************************************************************\
  2. Common class displaying a circular progress indicator in all Convert programs
  3. Copyright (C) 1993 David John Burrowes
  4.  
  5. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version.
  6.  
  7. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  8.  
  9. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  10.  
  11. The author, David John Burrowes, can be reached at:
  12.     davidjohn@kira.net.netcom.com
  13.     David John Burrowes
  14.     1926 Ivy #10
  15.     San Mateo, CA 94403-1367
  16. \***********************************************************************/
  17.  
  18. /*
  19.     This is a simple view that implements a percent-complete indicator.  It looks and
  20.     behaves just like the indicator on NeXT's Processes window, or the one in the
  21.     Installer.app application.  The caller gives it a number that constitutes the 'goal', and
  22.     then updates the view whenever it moves closer or further away from the goal.  The
  23.     circle displayed on the screen reflects these changes.
  24.     92.06.21    djb
  25. */
  26.  
  27. #import <appkit/View.h>
  28. #import "common.h"
  29. @interface ProgressIndicator:View
  30. {
  31.     Boolean    active;
  32.     Real        numUnits;
  33.     Real        CurrentValue;
  34. }
  35.  
  36. - drawSelf:(const NXRect *)rects :(int)rectCount; 
  37. - init;
  38. - ActivateWithGoal: (Real) count;
  39. - Deactivate;
  40. - IncrementBy: (Real) units;
  41. - SetTo: (Real) units;
  42. @end
  43.